<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="generator" content="ApiGen 2.7.0" />

	<title>Class Mekayotl_tools_Mailer | nort</title>

	<script type="text/javascript" src="resources/combined.js?1481722677"></script>
	<script type="text/javascript" src="elementlist.js?1094816827"></script>
	<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?1567499433" />

</head>

<body>
<div id="left">
	<div id="menu">
		<a href="index.html" title="Overview"><span>Overview</span></a>


		<div id="groups">
			<h3>Packages</h3>
			<ul>
				<li><a href="package-App.html">App<span></span></a>
						<ul>
				<li><a href="package-App.Saas.html">Saas</a>
						</li>
				<li><a href="package-App.saas.html">saas</a>
						</li>
				<li><a href="package-App.SaaS.html">SaaS<span></span></a>
						<ul>
				<li><a href="package-App.saas.Logic.html">Logic</a>
						</li>
				<li><a href="package-App.SaaS.SaaS.html">SaaS</a>
						</li>
				<li><a href="package-App.Saas.Tables.html">Tables</a>
						</li>
				<li><a href="package-App.Saas.Vo.html">Vo</a>
						</li>
							</ul></li></ul></li>
				<li><a href="package-aqua.html">aqua<span></span></a>
						<ul>
				<li><a href="package-aqua.tools.html">tools<span></span></a>
						<ul>
				<li><a href="package-aqua.tools.Monitor.html">Monitor</a>
						</li>
							</ul></li></ul></li>
				<li><a href="package-flashservices.html">flashservices<span></span></a>
						<ul>
				<li><a href="package-flashservices.adapters.html">adapters</a>
						</li>
				<li><a href="package-flashservices.debug.html">debug</a>
						</li>
				<li><a href="package-flashservices.exception.html">exception</a>
						</li>
				<li><a href="package-flashservices.filters.html">filters</a>
						</li>
				<li><a href="package-flashservices.io.html">io</a>
						</li>
				<li><a href="package-flashservices.sql.html">sql</a>
						</li>
				<li><a href="package-flashservices.util.html">util</a>
						</li>
							</ul></li>
				<li class="active"><a href="package-Mekayotl.html">Mekayotl<span></span></a>
						<ul>
				<li><a href="package-Mekayotl.core.html">core</a>
						</li>
				<li><a href="package-Mekayotl.database.html">database<span></span></a>
						<ul>
				<li><a href="package-Mekayotl.database.dal.html">dal</a>
						</li>
				<li><a href="package-Mekayotl.database.mysql.html">mysql</a>
						</li>
				<li><a href="package-Mekayotl.database.sqlite.html">sqlite</a>
						</li>
							</ul></li>
				<li class="active"><a href="package-Mekayotl.tools.html">tools<span></span></a>
						<ul>
				<li><a href="package-Mekayotl.tools.render.html">render<span></span></a>
						<ul>
				<li><a href="package-Mekayotl.tools.render.html.html">html</a>
						</li>
							</ul></li>
				<li><a href="package-Mekayotl.tools.renders.html">renders</a>
						</li>
							</ul></li></ul></li>
				<li><a href="package-None.html">None</a>
						</li>
				<li><a href="package-PHP.html">PHP</a>
						</li>
				<li><a href="package-PHPMailer.html">PHPMailer</a>
						</li>
				<li><a href="package-Services.html">Services<span></span></a>
						<ul>
				<li><a href="package-Services.JSON.html">JSON</a>
						</li>
							</ul></li>
				<li><a href="package-Swift.html">Swift<span></span></a>
						<ul>
				<li><a href="package-Swift.ByteStream.html">ByteStream</a>
						</li>
				<li><a href="package-Swift.CharacterStream.html">CharacterStream</a>
						</li>
				<li><a href="package-Swift.Encoder.html">Encoder</a>
						</li>
				<li><a href="package-Swift.Events.html">Events</a>
						</li>
				<li><a href="package-Swift.KeyCache.html">KeyCache</a>
						</li>
				<li><a href="package-Swift.Mailer.html">Mailer</a>
						</li>
				<li><a href="package-Swift.Mime.html">Mime</a>
						</li>
				<li><a href="package-Swift.Plugins.html">Plugins</a>
						</li>
				<li><a href="package-Swift.Transport.html">Transport</a>
						</li>
							</ul></li>
			</ul>
		</div>

		<hr />


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="class-Mekayotl_tools_Acl.html">Mekayotl_tools_Acl</a></li>
				<li><a href="class-Mekayotl_tools_CountryData.html">Mekayotl_tools_CountryData</a></li>
				<li><a href="class-Mekayotl_tools_Image.html">Mekayotl_tools_Image</a></li>
				<li class="active"><a href="class-Mekayotl_tools_Mailer.html">Mekayotl_tools_Mailer</a></li>
				<li><a href="class-Mekayotl_tools_Request.html">Mekayotl_tools_Request</a></li>
				<li><a href="class-Mekayotl_tools_Security.html">Mekayotl_tools_Security</a></li>
				<li><a href="class-Mekayotl_tools_Upload.html">Mekayotl_tools_Upload</a></li>
				<li><a href="class-Mekayotl_tools_Utils.html">Mekayotl_tools_Utils</a></li>
				<li><a href="class-Mekayotl_tools_utils_Conversion.html">Mekayotl_tools_utils_Conversion</a></li>
				<li><a href="class-Mekayotl_tools_utils_Numbers.html">Mekayotl_tools_utils_Numbers</a></li>
				<li><a href="class-Mekayotl_tools_Views.html">Mekayotl_tools_Views</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
<div id="rightInner">
	<form id="search">
		<input type="hidden" name="cx" value="" />
		<input type="hidden" name="ie" value="UTF-8" />
		<input type="text" name="q" class="text" />
		<input type="submit" value="Search" />
	</form>

	<div id="navigation">
		<ul>
			<li>
				<a href="index.html" title="Overview"><span>Overview</span></a>
			</li>
			<li>
				<a href="package-Mekayotl.tools.html" title="Summary of Mekayotl\tools"><span>Package</span></a>
			</li>
			<li class="active">
<span>Class</span>			</li>
		</ul>
		<ul>
			<li>
				<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
			</li>
		</ul>
		<ul>
		</ul>
	</div>

<div id="content" class="class">
	<h1>Class Mekayotl_tools_Mailer</h1>


	<div class="description">
	
<p>Adaptador para envío de correos, extendiendo de <a href="http://phpmailer.worxware.com/">PHPMailer</a>.</p>

	</div>

	<dl class="tree">
		<dd style="padding-left:0px">
			<a href="class-PHPMailer.html"><span>PHPMailer</span></a>
			
			
			
		</dd>
		<dd style="padding-left:30px">
			<img src="resources/inherit.png" alt="Extended by" />
<b><span>Mekayotl_tools_Mailer</span></b>			
			
			
		</dd>
	</dl>








	<div class="info">
		
		
		
		<b>Package:</b> <a href="package-Mekayotl.html">Mekayotl</a>\<a href="package-Mekayotl.tools.html">tools</a><br />

		<b>Located at</b> <a href="source-class-Mekayotl_tools_Mailer.html#17" title="Go to source code">lib/php/mekayotl/tools/Mailer.php</a><br />
	</div>


	<table class="summary" id="methods">
	<caption>Methods summary</caption>
	<tr data-order="__construct" id="___construct">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#___construct">#</a>
		<code><a href="source-class-Mekayotl_tools_Mailer.html#27" title="Go to source code">__construct</a>( <span>string <var>$lang</var> = <span class="php-quote">'es'</span></span> )</code>

		<div class="description short">
			
<p>Crea el objeto extendiendo <a href="http://phpmailer.worxware.com/">PHPMailer</a></p>

		</div>

		<div class="description detailed hidden">
			
<p>Crea el objeto extendiendo <a href="http://phpmailer.worxware.com/">PHPMailer</a></p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$lang</var></dt>
					<dd><code>string</code><br> El lenguaje del manejador de correos</dd>
				</dl></div>




				<h4>Overrides</h4>
				<div class="list"><code><a href="class-PHPMailer.html#_">PHPMailer::__construct</a></code></div>

		</div>
		</div></td>
	</tr>
	<tr data-order="sendMailsTo" id="_sendMailsTo">

		<td class="attributes"><code>
			 public 
			boolean
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_sendMailsTo">#</a>
		<code><a href="source-class-Mekayotl_tools_Mailer.html#60" title="Go to source code">sendMailsTo</a>( <span>array <var>$mails</var></span>, <span>string <var>$subject</var> = <span class="php-quote">''</span></span>, <span>string <var>$body</var> = <span class="php-quote">''</span></span> )</code>

		<div class="description short">
			
<p>Envía una serie de correos</p>

		</div>

		<div class="description detailed hidden">
			
<p>Envía una serie de correos</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$mails</var></dt>
					<dd><code>array</code><br> Un arreglo de arreglos asociativos con email y name</dd>
					<dt><var>$subject</var></dt>
					<dd><code>string</code><br> El asunto del correo electrónico</dd>
					<dt><var>$body</var></dt>
					<dd><code>string</code><br> El cuerpo del correo</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>boolean</code><br>Si alguno de los envíos contiene un error regesa FALSE<br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="correctBody" id="_correctBody">

		<td class="attributes"><code>
			 public 
			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_correctBody">#</a>
		<code><a href="source-class-Mekayotl_tools_Mailer.html#88" title="Go to source code">correctBody</a>( <span>string|array <var>$body</var></span> )</code>

		<div class="description short">
			
<p>Corrige la variable a un string para envío de correo</p>

		</div>

		<div class="description detailed hidden">
			
<p>Corrige la variable a un string para envío de correo</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$body</var></dt>
					<dd><code>string|array</code><br> Si se le proporciona un array asociativo lo transforma en un string HTML de
campo =&gt; valor</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>string</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="sendGridMailList" id="_sendGridMailList">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_sendGridMailList">#</a>
		<code><a href="source-class-Mekayotl_tools_Mailer.html#111" title="Go to source code">sendGridMailList</a>( <span>array <var>$recipients</var></span>, <span>string <var>$asunto</var> = <span class="php-keyword1">NULL</span></span>, <span>string <var>$mensaje</var> = <span class="php-keyword1">NULL</span></span> )</code>

		<div class="description short">
			
<p>Manda un correo por medio de SendGrid</p>

		</div>

		<div class="description detailed hidden">
			
<p>Manda un correo por medio de SendGrid</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$recipients</var></dt>
					<dd><code>array</code><br> Arreglo con los arreglos asociativos de los destinatarios: ej.
array('email'=&gt;'example@example.com','nombre'=&gt;'Example')</dd>
					<dt><var>$asunto</var></dt>
					<dd><code>string</code><br> Texto del asunto del correo</dd>
					<dt><var>$mensaje</var></dt>
					<dd><code>string</code><br> Texto con el mensaje, puede tener remplazo de textos por datos: ej; 'Hola
{nombre}'</dd>
				</dl></div>





		</div>
		</div></td>
	</tr>
	</table>

	<table class="summary inherited">
	<caption>Methods inherited from <a href="class-PHPMailer.html#methods">PHPMailer</a></caption>
	<tr>
		<td><code>
			<a href="class-PHPMailer.html#_">AddAddress()</a>, 
			<a href="class-PHPMailer.html#_">AddAttachment()</a>, 
			<a href="class-PHPMailer.html#_">AddBCC()</a>, 
			<a href="class-PHPMailer.html#_">AddCC()</a>, 
			<a href="class-PHPMailer.html#_">AddCustomHeader()</a>, 
			<a href="class-PHPMailer.html#_">AddEmbeddedImage()</a>, 
			<a href="class-PHPMailer.html#_">AddReplyTo()</a>, 
			<a href="class-PHPMailer.html#_">AddStringAttachment()</a>, 
			<a href="class-PHPMailer.html#_">AddrAppend()</a>, 
			<a href="class-PHPMailer.html#_">AddrFormat()</a>, 
			<a href="class-PHPMailer.html#_">Base64EncodeWrapMB()</a>, 
			<a href="class-PHPMailer.html#_">ClearAddresses()</a>, 
			<a href="class-PHPMailer.html#_">ClearAllRecipients()</a>, 
			<a href="class-PHPMailer.html#_">ClearAttachments()</a>, 
			<a href="class-PHPMailer.html#_">ClearBCCs()</a>, 
			<a href="class-PHPMailer.html#_">ClearCCs()</a>, 
			<a href="class-PHPMailer.html#_">ClearCustomHeaders()</a>, 
			<a href="class-PHPMailer.html#_">ClearReplyTos()</a>, 
			<a href="class-PHPMailer.html#_">CreateBody()</a>, 
			<a href="class-PHPMailer.html#_">CreateHeader()</a>, 
			<a href="class-PHPMailer.html#_">DKIM_Add()</a>, 
			<a href="class-PHPMailer.html#_">DKIM_BodyC()</a>, 
			<a href="class-PHPMailer.html#_">DKIM_HeaderC()</a>, 
			<a href="class-PHPMailer.html#_">DKIM_QP()</a>, 
			<a href="class-PHPMailer.html#_">DKIM_Sign()</a>, 
			<a href="class-PHPMailer.html#_">EncodeHeader()</a>, 
			<a href="class-PHPMailer.html#_">EncodeQ()</a>, 
			<a href="class-PHPMailer.html#_">EncodeQP()</a>, 
			<a href="class-PHPMailer.html#_">EncodeQPphp()</a>, 
			<a href="class-PHPMailer.html#_">EncodeString()</a>, 
			<a href="class-PHPMailer.html#_">GetAttachments()</a>, 
			<a href="class-PHPMailer.html#_">GetMailMIME()</a>, 
			<a href="class-PHPMailer.html#_">GetTranslations()</a>, 
			<a href="class-PHPMailer.html#_">HasMultiBytes()</a>, 
			<a href="class-PHPMailer.html#_">HeaderLine()</a>, 
			<a href="class-PHPMailer.html#_">InlineImageExists()</a>, 
			<a href="class-PHPMailer.html#_">IsError()</a>, 
			<a href="class-PHPMailer.html#_">IsHTML()</a>, 
			<a href="class-PHPMailer.html#_">IsMail()</a>, 
			<a href="class-PHPMailer.html#_">IsQmail()</a>, 
			<a href="class-PHPMailer.html#_">IsSMTP()</a>, 
			<a href="class-PHPMailer.html#_">IsSendmail()</a>, 
			<a href="class-PHPMailer.html#_">MailSend()</a>, 
			<a href="class-PHPMailer.html#_">MsgHTML()</a>, 
			<a href="class-PHPMailer.html#_">RFCDate()</a>, 
			<a href="class-PHPMailer.html#_">SecureHeader()</a>, 
			<a href="class-PHPMailer.html#_">Send()</a>, 
			<a href="class-PHPMailer.html#_">SendmailSend()</a>, 
			<a href="class-PHPMailer.html#_">SetError()</a>, 
			<a href="class-PHPMailer.html#_">SetFrom()</a>, 
			<a href="class-PHPMailer.html#_">SetLanguage()</a>, 
			<a href="class-PHPMailer.html#_">SetWordWrap()</a>, 
			<a href="class-PHPMailer.html#_">Sign()</a>, 
			<a href="class-PHPMailer.html#_">SmtpClose()</a>, 
			<a href="class-PHPMailer.html#_">SmtpConnect()</a>, 
			<a href="class-PHPMailer.html#_">SmtpSend()</a>, 
			<a href="class-PHPMailer.html#_">TextLine()</a>, 
			<a href="class-PHPMailer.html#_">UTF8CharBoundary()</a>, 
			<a href="class-PHPMailer.html#_">ValidateAddress()</a>, 
			<a href="class-PHPMailer.html#_">WrapText()</a>, 
			<a href="class-PHPMailer.html#_">_mime_types()</a>, 
			<a href="class-PHPMailer.html#_">doCallback()</a>, 
			<a href="class-PHPMailer.html#_">set()</a>
		</code></td>
	</tr>
	</table>




	<table class="summary inherited">
	<caption>Constants inherited from <a href="class-PHPMailer.html#constants">PHPMailer</a></caption>
	<tr>
		<td><code>
			<a href="class-PHPMailer.html#STOP_CONTINUE"><b>STOP_CONTINUE</b></a>, 
			<a href="class-PHPMailer.html#STOP_CRITICAL"><b>STOP_CRITICAL</b></a>, 
			<a href="class-PHPMailer.html#STOP_MESSAGE"><b>STOP_MESSAGE</b></a>
		</code></td>
	</tr>
	</table>



	<table class="summary inherited">
	<caption>Properties inherited from <a href="class-PHPMailer.html#properties">PHPMailer</a></caption>
	<tr>
		<td><code>
			<a href="class-PHPMailer.html#$AltBody"><var>$AltBody</var></a>, 
			<a href="class-PHPMailer.html#$Body"><var>$Body</var></a>, 
			<a href="class-PHPMailer.html#$CharSet"><var>$CharSet</var></a>, 
			<a href="class-PHPMailer.html#$ConfirmReadingTo"><var>$ConfirmReadingTo</var></a>, 
			<a href="class-PHPMailer.html#$ContentType"><var>$ContentType</var></a>, 
			<a href="class-PHPMailer.html#$DKIM_domain"><var>$DKIM_domain</var></a>, 
			<a href="class-PHPMailer.html#$DKIM_identity"><var>$DKIM_identity</var></a>, 
			<a href="class-PHPMailer.html#$DKIM_private"><var>$DKIM_private</var></a>, 
			<a href="class-PHPMailer.html#$DKIM_selector"><var>$DKIM_selector</var></a>, 
			<a href="class-PHPMailer.html#$Encoding"><var>$Encoding</var></a>, 
			<a href="class-PHPMailer.html#$ErrorInfo"><var>$ErrorInfo</var></a>, 
			<a href="class-PHPMailer.html#$From"><var>$From</var></a>, 
			<a href="class-PHPMailer.html#$FromName"><var>$FromName</var></a>, 
			<a href="class-PHPMailer.html#$Helo"><var>$Helo</var></a>, 
			<a href="class-PHPMailer.html#$Host"><var>$Host</var></a>, 
			<a href="class-PHPMailer.html#$Hostname"><var>$Hostname</var></a>, 
			<a href="class-PHPMailer.html#$LE"><var>$LE</var></a>, 
			<a href="class-PHPMailer.html#$Mailer"><var>$Mailer</var></a>, 
			<a href="class-PHPMailer.html#$MessageID"><var>$MessageID</var></a>, 
			<a href="class-PHPMailer.html#$Password"><var>$Password</var></a>, 
			<a href="class-PHPMailer.html#$PluginDir"><var>$PluginDir</var></a>, 
			<a href="class-PHPMailer.html#$Port"><var>$Port</var></a>, 
			<a href="class-PHPMailer.html#$Priority"><var>$Priority</var></a>, 
			<a href="class-PHPMailer.html#$SMTPAuth"><var>$SMTPAuth</var></a>, 
			<a href="class-PHPMailer.html#$SMTPDebug"><var>$SMTPDebug</var></a>, 
			<a href="class-PHPMailer.html#$SMTPKeepAlive"><var>$SMTPKeepAlive</var></a>, 
			<a href="class-PHPMailer.html#$SMTPSecure"><var>$SMTPSecure</var></a>, 
			<a href="class-PHPMailer.html#$Sender"><var>$Sender</var></a>, 
			<a href="class-PHPMailer.html#$Sendmail"><var>$Sendmail</var></a>, 
			<a href="class-PHPMailer.html#$SingleTo"><var>$SingleTo</var></a>, 
			<a href="class-PHPMailer.html#$SingleToArray"><var>$SingleToArray</var></a>, 
			<a href="class-PHPMailer.html#$Subject"><var>$Subject</var></a>, 
			<a href="class-PHPMailer.html#$Timeout"><var>$Timeout</var></a>, 
			<a href="class-PHPMailer.html#$Username"><var>$Username</var></a>, 
			<a href="class-PHPMailer.html#$Version"><var>$Version</var></a>, 
			<a href="class-PHPMailer.html#$WordWrap"><var>$WordWrap</var></a>, 
			<a href="class-PHPMailer.html#$action_function"><var>$action_function</var></a>, 
			<a href="class-PHPMailer.html#$language"><var>$language</var></a>
		</code></td>
	</tr>
	</table>


</div>

	<div id="footer">
		nort API documentation generated by <a href="http://apigen.org">ApiGen 2.7.0</a>
	</div>
</div>
</div>
</body>
</html>
